package breadbox.dataManagement;
import java.io.IOException;
import java.util.TreeSet;

import breadbox.pastry.ID;
//import java.io.IOException;


public interface Storage {
	
	public byte[] get(ID id) throws IOException;
	public int write(ID id, byte[] data) throws IOException;
	public void delete(ID id) throws IOException;
	public boolean exists(ID id);
	public void deleteIfOld(ID id, long timeout);
	public TreeSet<Long> allChunks();
	public void touch(ID id);
}
